package com.wyl.dao

import com.wyl.utils.getSqlSession
import org.junit.Test

class StudentMapperTest {
    @Test
    fun testGetAllStudent() {
        getSqlSession().use {
            val mapper = it.getMapper(StudentMapper::class.java)
            val studentList = mapper.getAllStudent()
            studentList.forEach(::println)
        }
    }

    @Test
    fun testGetAllStudent2() {
        getSqlSession().use {
            val mapper = it.getMapper(StudentMapper::class.java)
            val studentList = mapper.getAllStudent2()
            studentList.forEach(::println)
        }
    }
}